<div class="asidetop">
    <ul class="tab_navs">
        <li class="selected">
            <a href="javascript:void(0)">图文消息</a>
        </li>
        

         <li>
            <a onclick="getRight('/Sucai/text');" href="javascript:void(0)">文本消息</a>
        </li>
         <li>
            <a onclick="getRight('/Sucai/image');" href="javascript:void(0)">图片消息</a>
        </li>
        
        
    </ul>
</div>

<div class="main_bd">
    <div class="sub_title_bar white" style="clear: both">
        <div class="info">
            <h3 id="page_title">图文消息列表(共<span id="js_listCount">{$scount}</span>个)</h3>
        </div>
        <div class="pagination_wrp pageNavigator">
            <div class="pagination">
                <span class="page_nav_area">
                    <a class="btn page_prev getRight" href="/Sucai/index/page/{$prev}"><i class="arrow"></i></a>        
                    <span class="page_num">
                        <label>{$page}</label>
                        <span class="num_gap">/</span>
                        <label>{$count}</label>
                    </span>        
                    <a class="btn page_next getRight" href="/Sucai/index/page/{$next}"><i class="arrow"></i></a>
                </span>    
                <span class="goto_area">
                    <input type="text" id="goid">
                    <a class="btn page_go" href="javascript:void(0);" onclick="getRight('/Sucai/index/page/'+$('#goid').val());">跳转</a>
                </span>    
            </div>
        </div>
    </div>
    <div id="appmsgList" class="appmsg_list">
        <span class="create_access"><i class="icon42_common add_gray"></i><a href="javascript:void(0);" onclick="getRight('/Sucai/single');"><i class="icon_appmsg_create"></i><strong>单图文消息</strong></a><a href="javascript:void(0);" onclick="getRight('/Sucai/double');"><i class="icon_appmsg_create multi"></i><strong>多图文消息</strong></a></span>
        <volist name="data" id="vo">
            <div class="media_preview_area">
                <div class="appmsg  editing">

                    <div class="appmsg_opr" style="font-size:20px;">

                        <ul>
                            <li class="appmsg_opr_item grid_item size1of2">
                                <input type="text"class="input_kw" id="news|{$vo.id}" value="{$vo.keyword}"/>
                            </li>
                            <!--<li class="appmsg_opr_item grid_item size1of2 no_extra">
                                <a href="javascript:void(0);" data-id="200294412" class="js_del no_extra"><i class="icon18_common del_gray">删除</i></a>
                            </li>-->
                        </ul>
                    </div>



                    <div class="appmsg_content">
                        <h4 class="appmsg_title">{$vo.title}</h4>
                        <div class="appmsg_info">
                            <em class="appmsg_date"></em>
                        </div>
                        <div class="appmsg_thumb_wrp">
                            <img src="{$vo.cover}" style="display:block;" class="js_appmsg_thumb appmsg_thumb"><i class="appmsg_thumb default">封面图片</i>
                        </div>
                        <p class="appmsg_desc">{$vo.abstract}</p>
                    </div>
                </div>
            </div>
        </volist>


        <if condition="!empty($datalist)">
            <volist name="datalist" id="vo"> 

                <div class="appmsg multi" >
                    <div class="appmsg_opr" style="font-size:20px;">

                        <ul>
                            <li class="appmsg_opr_item grid_item size1of2">
                                <input type="text"class="input_kw" id="newses|{$vo[0]['pid']}" value="{$vo.keyword}"/>
                            </li>
                            <!--<li class="appmsg_opr_item grid_item size1of2 no_extra">
                                <a href="javascript:void(0);" data-id="200294412" class="js_del no_extra"><i class="icon18_common del_gray">删除</i></a>
                            </li>-->
                        </ul>
                    </div>
                    <div class="appmsg_content">
                        <volist name="vo" id="voo">
                        <if condition="trim($key) neq 'keyword'">
                            
                            
                            <!--                        <div class="cover_appmsg_item">
                                                        <h4 class="appmsg_title"><a target="_blank" href="">xxxxxxxxxxx</a></h4>
                                                        <div class="appmsg_thumb_wrp"><img class="appmsg_thumb" alt="" src=""></div>
                                                    </div>-->
                            <div class="appmsg_item" name="{$voo.pid}">
                                <img class="appmsg_thumb" alt="" src="{$voo.cover}">
                                <h4 class="appmsg_title"><a target="_blank" href="">{$voo.title}</a></h4>
                            </div>
                        </if>
                        </volist>

                    </div>


                </div>
            </volist>
        </if>


    </div>
</div>
</div>
<style type="text/css">
    .appmsg_desc{font-size:14px; letter-spacing:0;}	
</style>


<script type="text/javascript">
    
    
    $('.input_kw').change(function(){
        var targetArr = $(this).attr('id').split("|");
        var word = $(this).val();
 
        $.get("/Keyword/do_add",{word:word,sid:targetArr[1],type:targetArr[0]},function(){
            
        });
    });
   
   
</script>